import React from 'react';
import {Route,Link} from 'react-router-dom'
class List extends React.Component {
    render() {
        console.log(this)
        return <div className=''>
        
        <Link to='/list/a'>list/a</Link>;
        <Link to='/list/b'>list/b</Link>
        List
            <Route path='/list/a' render={()=><h3>AAAAA</h3>}></Route>
            <Route path='/list/b' render={()=><h3>BBBBB</h3>}></Route>
        </div>;
    }
}
export default List